
<?php
/**
 * Created by PhpStorm.
 * User: stone
 * Date: 2019-06-18
 * Time: 22:15
 */
echo '测试redis';
$redisObject=new Redis();
if(!$redisObject->connect('127.0.0.1',6379)){
    echo 'Cant connect to Redis Server';
    die("Can't connect to Redis Server");

}else{
    echo 'Redis is connected';
}
